<%@page import="java.io.File"%>
<%@page import="nnweboa.User"%>
<%@page import="nnweboa.Unitls"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>简要报告</title>
</head>
<body>


	<%
		String cookiename = Unitls.getCookieName(request);
		int userright = Unitls.getUserRightBycookieName(cookiename,out);
		if (userright == User.NTManager) {
			if (!Unitls.isSetupNTmanagerMail(getServletContext()
					.getRealPath(""))) {
				request.getRequestDispatcher("function/ntglobelmail.jsp")
						.forward(request, response);
			} else {
				request.getRequestDispatcher("function/ntreport.jsp")
						.forward(request, response);
			}

		}
		if (userright == User.DPManager) {
			request.getRequestDispatcher("function/dpreport.jsp").forward(
					request, response);
		}
		if (userright == User.Boss) {
			request.getRequestDispatcher("function/boss.jsp").forward(
					request, response);
		}
		if (userright == User.Finacial) {
			request.getRequestDispatcher("function/finacial.jsp").forward(
					request, response);
		}
	%>
</body>
</html>